package utilPackage;

import java.awt.Graphics;
import java.awt.image.ImageObserver;

import main.Sprite;
public class Star extends Sprite {
    public final String starpix = "../Image/star.gif";
    
    public Star(int x_coord, int y_coord){
      
        x = x_coord;
        y = y_coord;
        
    }
    
    public void draw(){
			if (isVisible()) {
				g.drawImage(getImage(), this.x, this.y, imageObserver);
			} 
    }
    
    public void think(){
    	this.y += 1;
    	if(y > BOARD_HEIGTH){
    		this.y = 0;
    		this.x = (int)(Math.random() * BOARD_WIDTH);
    		
    	}
    	
    }

	@Override
	public boolean doesCollide(Sprite s) {
		// TODO Auto-generated method stub
		return false;
	}

}
